<jsp:include page="/WEB-INF/views/layouts/header.jsp" />
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	// 网站地址
	String netPath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort();
%>
<!--中间部分开始-->
<div class="main">
	<!-- 左侧 -->
	<jsp:include page="/WEB-INF/views/account/sidebar.jsp" />
	<!-- /左侧 -->
	<!-- 核心内容区域 -->
	<div id="iaas_layout_content" class="rightblock">
		<p class="shadow"></p>
		<div class="content">
			<!--默认状态下引用样式ml60，展开后引用样式ml140-->
			<div class="mainblock">
				<div class="tabA">
					<h1>产品详情</h1>
				</div>
				<script>
				function toProuct(){alert("tttt");window.location.href="<%=basePath%>product/productInfo"};
				</script>
				<div class="zhgl_1 zhxxxg">
					<h5>产品信息</h5>
					<table width="100%" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td width="8%"><p>产品名称：</p></td>
							<td width="92%">${product.productName}</td>
						</tr>
						<tr>
							<td><p>发行银行：</p></td>
							<td>${product.bank.name}</td>
						</tr>
						<tr>
							<td><p>币种：</p></td>
							<td><c:if test="${product.curtype == 1 }">人民币</c:if> <c:if
									test="${product.curtype == 2 }">美元</c:if> <c:if
									test="${product.curtype == 3 }">港币</c:if> <c:if
									test="${product.curtype == 4 }">欧元</c:if> <c:if
									test="${product.curtype == 5 }">英镑</c:if> <c:if
									test="${product.curtype == 6 }">澳元</c:if> <c:if
									test="${product.curtype == 7 }">其他币种</c:if></td>
						</tr>
						<tr>
							<td><p>收益类型：</p>
							</td>
							<td><c:if test="${product.incomeType == 1 }">保本固定收益类型</c:if>
								<c:if test="${product.incomeType == 2 }">保本浮动收益类型</c:if> <c:if
									test="${product.incomeType == 3 }">非保本浮动收益类型</c:if> <c:if
									test="${product.incomeType == 0 }">暂未发布</c:if></td>
						</tr>
						<tr>
							<td><p>管理期限：</p>
							</td>
							<td>${product.runtimeTime }</td>
						</tr>
						<tr>
							<td><p style="width:130px;">预期最高收益率：</p></td>
							<td>${product.expectedHeigh }</td>
						</tr>
						<tr>
							<td><p>起始金额：</p></td>
							<td>${product.individualAmount }</td>
						</tr>
						<tr>
							<td><p>起售开始：</p></td>
							<td><fmt:formatDate value="${product.sellStart}" type="date"
									pattern="yyyy-MM-dd" />
							</td>
						</tr>
						<tr>
							<td><p>起售结束：</p></td>
							<td><fmt:formatDate value="${product.sellEnd}" type="date"
									pattern="yyyy-MM-dd" />
							</td>
						</tr>
						<tr>
							<td><p>发行地区：</p></td>
							<td>${product.salesArea }</td>
						</tr>
						<tr>
							<td><p>是否展示：</p></td>
							<td><c:if test="${product.ifShow == 1}">显示状态</c:if>
								<c:if test="${product.ifShow == 0}">隐藏状态</c:if>
								</td>
						</tr>
					</table>
				</div>
				<div class="btnblock ">
					<input type="button" value="返回" class="btngreen01 linkhand" onclick='window.location.href="<%=basePath%>product/info"'/>
				</div>

			</div>
		</div>
	</div>
</div>
<!--中间部分结束-->
<!--底部开始-->
<jsp:include page="/WEB-INF/views/layouts/footer.jsp" />
<!--底部结束-->
